<template>
	<view class="container">
	     <uni-section overflow title="开奖信息" type="line">
			<uni-card  v-for="(value,index) in arrays" >
				<uni-badge class="uni-badge-left-margin" :text="value.q_one" />
				<uni-badge class="uni-badge-left-margin" :text="value.q_two" />
				<uni-badge class="uni-badge-left-margin" :text="value.q_three" />
				<uni-badge class="uni-badge-left-margin" :text="value.q_four" />
				<uni-badge class="uni-badge-left-margin" :text="value.q_five" />
				<uni-badge class="uni-badge-left-margin" :text="value.q_six" />
				<text class="uni-body">➕</text>
				<uni-badge class="uni-badge-left-margin" :text="value.h_one"type="primary" />
				<text class="uni-body" style="white-space: pre-wrap;">{{ "  "+value.createdate }}</text> 
			</uni-card>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				arrays:[],
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			async getShuangSeQiuVo () {
				uni.showLoading({  
				    title: '加载中'  
				});
				//发起post方式的请求
				uni.request({
					//url:  'http://114.132.55.180:443/sand/chart/selectSanD/coldHot', 
					url: 'http://114.132.55.180:443/shaungseqiu/chart/selecShuangSe/mode',
					header: {
						'content-type': 'application/x-www-form-urlencoded'
					},
					data: {
						qishu: "50"
					},
					method: 'POST',
				
					success: (res) => {
						uni.hideLoading(); //动画关闭
						this.arrays = res.data
						if (res.data.success) {
				
						} else {}
				
					},
					fail: (res) => {
				
					}
				});
			}, 

		},
		mounted() {
		  this.getShuangSeQiuVo();
		}
	}
</script>

<style>
	.content {
		text-align: center;
		height: 400upx;
		margin-top: 200upx;
	}
</style>
